home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _B13DBCB93A474D6497642B82BD3AC830 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.2 KB  |  33 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6. local entity stallshooter // the guy who will shoot the stall
  7. local entity breakstall // the breakable brush for the stall
  8. local entity originalwall // the func wall that needs to be removed
  9. local entity stall_playerfind // the target that the stall guy will shoot at
  10. local int sig1
  11.  
  12. stallshooter = find entity with targetname "stallshooter"  // \
  13. breakstall = find entity with targetname "breakstall"
  14. originalwall = find entity with targetname "originalwall"
  15. stall_playerfind = find entity with targetname "stall_playerfind"
  16.  
  17. // use entity stallshooter // spawns the guy in
  18.  
  19. if stallshooter.health > 0
  20.  
  21.    use entity originalwall // this should remove the func_wall
  22.    animate entity stallshooter performing action STD_F_FWD_S_2 targeting entity stall_playerfind signaling sig1 //breakstall // this should get the guy to fire and break the brush
  23.    wait .1 seconds 
  24.    use entity breakstall // should trigger the stall to break no matter what, lets hope this fixes a bug
  25.    wait for all clearing sig1
  26.   
  27.    
  28. endif 
  29.  
  30.  
  31.    reset ai for entity stallshooter 
  32.    animate entity stallshooter performing action SCRIPT_RELEASE
  33.    exit